// 盘点管理模块路由
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const STOCKTAKING: AppRouteRecordRaw = {
  path: '/stocktaking',
  name: '盘点管理',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.stocktaking',
    requiresAuth: true,
    ignoreCache: false,
    icon: 'icon-scan',
    roles: ['*'],
    order: 7,
  },
  children: [
    {
      path: '/stocktaking-plan',
      name: '盘点计划',
      component: () =>
        import('@/views/stocktaking/list/stocktaking-plan/index.vue'),
      meta: {
        locale: 'stocktaking.stocktakingPlan',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: '/stocktaking-work',
      name: '盘点作业',
      component: () =>
        import('@/views/stocktaking/list/stocktaking-work/index.vue'),
      meta: {
        locale: 'stocktaking.stocktakingWork',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
  ],
};

export default STOCKTAKING;
